package com.fs.dao.Impl;

import com.fs.dao.ReplyDao;
import com.fs.pojo.Reply;
import com.fs.utils.JDBCUtils;

import java.util.List;

public class ReplyDaoImpl implements ReplyDao {

    @Override
    public Reply queryById(String id) {
        return null;
    }

    @Override
    public List<Reply> queryAll() {
        return null;
    }

    @Override
    public int insert(Reply obj) {
        return 0;
    }

    @Override
    public int deleteById(String id) {
        return 0;
    }

    @Override
    public int update(Reply obj) {
        return 0;
    }


    /**
     *  根据讨论id获取回复集合
     * @param id
     * @return
     */

    @Override
    public List<Reply> queryAllByDiscusstionId(String id) {

        return JDBCUtils.executeQurey("select * from tb_reply where discusstion_id = ?",Reply.class,id);
    }
}
